package com.changgou.goods.feign;

import com.changgou.pojo.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ANG.YU
 */
@FeignClient(name = "goods")
@RequestMapping("/category")
public interface CategoryFeign {
    @GetMapping("/findCategoryBySpuId/{id}")
    public Category findCategoryBySpuId(@PathVariable(name = "id") Integer id);
}
